home *** CD-ROM | disk | FTP | other *** search
- Path: news.gate.net!bftsi0!joe
- From: joe@bftsi0.UUCP (Joe Foster of Borg)
- Newsgroups: comp.lang.c++,comp.unix.programmer,comp.os.linux.misc
- Subject: Re: ofstream
- Message-ID: <6384@bftsi0.UUCP>
- Date: 18 Mar 96 21:20:47 GMT
- References: <4iju9a$m68@tic.sm.dsi.unimi.it>
- Followup-To: comp.lang.c++
- Organization: Barbara Foster Tax Service, Inc.
-
- In article <4iju9a$m68@tic.sm.dsi.unimi.it>, moreld@dsi.unimi.it (~ZIO BUDDA~) writes:
-
- > hi, this is my question :
-
- > why if i write a line like
- > ofstream ("PIPPO")
- > the g++ 2.7.0 not return any warning or error?>??
-
- > is this correct in c++???
-
- You should probably get a warning like "unused result of
- conversion", but maybe you need to check the warning level. Maybe
- you have warnings turned off? The code when executed will create
- a zero-byte file named PIPPO.
-
- > tnx in advance and sorry for my bad english
-
- No problem. Humans don't use YACC as their parsers. :-)
-
- --
- Joe Foster (joe@bftsi0.gate.net or joe%bftsi0@uunet.uu.net)
- WARNING: I cannot be held responsible for the above They're coming to
- because my cats have apparently learned to type. take me away, ha ha!
-